package xyz.chenyongpeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台管理员表
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsAdmin对象", description="后台管理员表")
public class ZsAdmin extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员主键")
    @TableId(value = "a_id", type = IdType.AUTO)
    private Integer aId;

    @ApiModelProperty(value = "登录名")
    private String loginName;

    @ApiModelProperty(value = "加密的登录密码")
    private String password;

    @ApiModelProperty(value = "真实姓名")
    private String truename;

    @ApiModelProperty(value = "登录标识 1允许 0不允许")
    private Boolean isLogin;

    @ApiModelProperty(value = "是否删除 1删除 0没删除")
    private Boolean isDelete;

    @ApiModelProperty(value = "创建时间")
    private Integer createTime;

    @ApiModelProperty(value = "最后一次登录时间")
    private Integer lastLoginTime;

    @ApiModelProperty(value = "是否为超管，1是 0不是")
    private Boolean isSuper;


}
